package Day13.IO;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Arrays;

public class Demo4 {

    public static void main(String[] args) throws IOException {
        FileInputStream fos = new FileInputStream("D:\\A.txt");
//            int i1 = fos.read();
//            System.out.println(i1);
//            int i;
//            while ((i=fos.read())!=-1){
//
//                System.out.println((char) i);
//            }

        byte[] bys = new byte[2];
        int len1 = fos.read(bys);
        System.out.println(Arrays.toString(bys));
        System.out.println(len1);




    }
}
